//
//  AIListCell.h
//  JPWords
//
//  Created by 梁淑婷 on 2024/7/31.
//

#import "JPCustomCell.h"
#import "AIListModel.h"

NS_ASSUME_NONNULL_BEGIN

@class AIListCell;

@protocol AIListCellDelegate <NSObject>

@optional

-(void)editTap:(AIListCell*)cell;

-(void)shareTap:(AIListCell*)cell;

-(void)playTap:(AIListCell*)cell andIndex:(NSInteger)index;

@end


@interface AIListCell : JPCustomCell

@property (nonatomic, weak)id<AIListCellDelegate>delegate;
@property(nonatomic,assign)NSInteger row;
@property(nonatomic,strong)AIListModel *model;
@property(nonatomic,assign)CGFloat currentAvailableWidth;
@property(nonatomic,assign)CGFloat currentAvailableHeight;

- (void)startVoiceAnimation;
- (void)startVoiceAnimation2;
- (void)stopVoiceAnimation;
- (void)stopVoiceAnimation2;


@end

NS_ASSUME_NONNULL_END
